<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- Page title -->
    <title>中风医馆 | 店铺管理</title>

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
    <!--<link rel="shortcut icon" type="image/ico" href="favicon.ico" />-->

    <!-- Vendor styles -->
    <link rel="stylesheet" href="/End/Public/vendor/fontawesome/css/font-awesome.css" />
    <link rel="stylesheet" href="/End/Public/vendor/metisMenu/dist/metisMenu.css" />
    <link rel="stylesheet" href="/End/Public/vendor/animate.css/animate.css" />
    <link rel="stylesheet" href="/End/Public/vendor/bootstrap/dist/css/bootstrap.css" />
    <link rel="stylesheet" href="/End/Public/vendor/sweetalert/lib/sweet-alert.css" />
	<link rel="stylesheet" href="/End/Public/vendor/blueimp-gallery/css/blueimp-gallery.min.css" />
    <!-- App styles -->
    <link rel="stylesheet" href="/End/Public/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css" />
    <link rel="stylesheet" href="/End/Public/fonts/pe-icon-7-stroke/css/helper.css" />
    <link rel="stylesheet" href="/End/Public/styles/style.css">
	<style type="text/css">
		.pic{
			margin: 30px 0;
		}
		.pic a img{
			width: 240px;
			height: 160px;
			margin: 10px 0;
		}
		label{
			font-size: 18px !important;
			margin: 20px 0 10px 0;
		}
		.choose{
			text-align: center;
			margin-top: 50px;
		}
		.choose button{			
			font-size: 18px;
			width: 150px;
		}
	</style>
</head>
<body>

<!-- Simple splash screen-->
<div class="splash"> 
	<div class="color-line">
		
	</div>
	<div class="splash-title">
		<h1>中风医馆服务者后台</h1>
		<p>中风医馆-您的家庭医生，离你最近的医馆</p>
		<img src="/End/Public/images/loading-bars.svg" width="64" height="64" /> 
	</div> 
</div>
<!--[if lt IE 7]>
<p class="alert alert-danger">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Main Wrapper -->
<div id="wrapper">

    <div class="content animate-panel content-boxed">
        <div class="row">
            <div class="col-lg-12">
                <div class="hpanel blog-article-box">
                    <div class="panel-heading">
                        <h4 class="name"><?php echo ($doctor["name"]); ?></h4>
                        <!--<small style="font-size: 13px;">服务者认证资料如下</small>-->
                        <div class="text-muted" style="font-size: 15px;">
                            	申请时间：<span class="font-bold"><?php echo date('Y-m-d',$doctor['start_time']);?></span>
                        </div>
                    </div>
                    <div class="panel-body lightBoxGallery">
                    	
                        <label>
                        	真实姓名：<span class="name"><?php echo ($doctor["name"]); ?></span>
                        </label>
                        <br/>
                        <label>
                        	手机号：<span class="phonenumber"><?php echo ($doctor["phone"]); ?></span>
                        </label>
                        <br/>
                        <label>
                        	身份证号码：<span class="idcard"><?php echo ($doctor["id_no"]); ?></span>
                        </label>	
                        <br />
                        <label>
                        	技能标签：<span class="biaoqian"><?php echo ($doctor["skill"]); ?></span>
                        </label>
                        <br/>
                        <label>
                        	在职单位：<span class="company"><?php echo ($doctor["employer"]); ?></span>
                        </label>
                        <br/>
                      <!--  <label>
                        	团队编号|名称：<span class="team"><?php echo ($doctor["label"]); ?>|<?php echo ($doctor["group_name"]); ?></span>
                        </label>-->
                        <div class="pic">
                        	<label for="">身份证扫描件：</label><br />
                        	<a href="<?php echo ($doctor["img_identZ"]); ?>" title="Image from Unsplash" data-gallery="">
                        		<img src="<?php echo ($doctor["img_identZ"]); ?>">
                        	</a>
                        	<a href="<?php echo ($doctor["img_identF"]); ?>" title="Image from Unsplash" data-gallery="">
                        		<img src="<?php echo ($doctor["img_identF"]); ?>">
                        	</a><br />
                        </div>
                        <div class="pic">
                        	<label for="">学历扫描件：</label><br />
                        	<a href="<?php echo ($doctor["img_edu"]); ?>" title="Image from Unsplash" data-gallery="">
                        		<img src="<?php echo ($doctor["img_edu"]); ?>">
                        	</a><br />
                        </div>
                        <div class="pic">
                        	<label for="">技能证书：</label><br />
                            <?php if(is_array($doctor["img_skills"])): foreach($doctor["img_skills"] as $key=>$img_skill): ?><a href="<?php echo ($img_skill); ?>" title="Image from Unsplash" data-gallery="">
                                    <img src="<?php echo ($img_skill); ?>">
                                </a><?php endforeach; endif; ?>

                            <br />
                        </div>
                        <div class="pic">
                        	<label for="">在职/离职证明：</label><br />
                        	<a href="<?php echo ($doctor["img_job"]); ?>" title="Image from Unsplash" data-gallery="">
                        		<img src="<?php echo ($doctor["img_job"]); ?>">
                        	</a><br />
                        </div>
                       <!-- <div class="choose">
                        	<button id="yes" onclick="passDoctor(1)" class="btn btn-success btn-sm demo2">通过</button>
	                    	<button id="no" onclick="passDoctor(0)" class="btn btn-danger btn-sm demo4">不通过</button>
	                    </div>-->
                    </div>
                    
                    <div class="panel-footer">
		                <span class="pull-right">
		                    <i class="fa fa-hospital-o"> </i>中风医馆
		                </span>
                        <i class="fa fa-user"> </i>服务者核审
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- The Gallery as lightbox dialog, should be a child element of the document body -->
<div id="blueimp-gallery" class="blueimp-gallery">
    <div class="slides"></div>
    <h3 class="title"></h3>
    <a class="prev">‹</a>
    <a class="next">›</a>
    <a class="close">×</a>
    <a class="play-pause"></a>
    <ol class="indicator"></ol>
</div>

<!-- Vendor scripts -->
<script src="/End/Public/vendor/jquery/dist/jquery.min.js"></script>
<script src="/End/Public/vendor/slimScroll/jquery.slimscroll.min.js"></script>
<script src="/End/Public/vendor/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="/End/Public/vendor/metisMenu/dist/metisMenu.min.js"></script>
<script src="/End/Public/vendor/iCheck/icheck.min.js"></script>
<script src="/End/Public/vendor/sparkline/index.js"></script>
<script src="/End/Public/vendor/blueimp-gallery/js/jquery.blueimp-gallery.min.js"></script>

<!-- App scripts -->
<script src="/End/Public/scripts/homer.js"></script>

<script>
$(function(){
	//获得参数name
	var value = decodeURI(window.location.href);
	var name = value.split('=')[1];
//	var name = value.substring(value.lastIndexOf('?') + 1,value.length).split('&');
//	alert(name);
    passDoctor = function(flag) {
        $.getJSON("<?php echo U('Doctor/Index/checkedDoctorPass');?>",{flag:flag,id:<?php echo ($doctor["id"]); ?>},function (res) {
            if(res.status == '1'){
                alert('审核成功');
            }else {
                alert('审核失败');
            }
            //返回到列表页
            window.location.href = "<?php echo U('Doctor/Index/checked');?>";
        });
    }
});

</script>

</body>
</html>